package com.the_last;

import com.the_last.pojo.po.Product;
import com.the_last.service.ProductService;
import com.the_last.utils.Result;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.List;

@EnableScheduling
@SpringBootApplication
public class Application {
    
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
        ProductService productService = context.getBean(ProductService.class);
        Result<List<Product>> productListWithCache = productService.getProductListWithCache(false);
    }
    
}
